/**
 * 
 */
package com.xb.demox.proxy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @author kexue
 *
 */
public class TestMain {

	private static Logger logger = LoggerFactory.getLogger(TestMain.class);
		public static void main(String[] args) {


			logger.info("开始初始化服务端");

			ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
					"classpath:applicationContextServer.xml");
			logger.info("注册服务端");

	ITemplate template = (ITemplate) applicationContext.getBean("templatePoxy");
	template.insert() ;
//	logger.info( applicationContext.getBean("templateInstance").toString());
//	template.insert();
		
		}
}
